package com.wslNB.eureka.controller;


import com.wslNB.eureka.domain.GodWSL;
import com.wslNB.eureka.mapper.GodMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/provider")
public class ProviderController {


    @Autowired
    private GodMapper godMapper;


    @GetMapping("/findOne/{id}")
    public GodWSL findOne(@PathVariable Integer id){
        return godMapper.findOne(id);
    }


}
